You are here: Building the Model: General Elements > Pre-defined Tank Subroutines > Tank_SetState > Description
Sets the state of the tank (e.g., Tank_State[<Tank ID>]) to a new state and updates the statistics since the last change of state.
Use Tank_SetState to explicitly change the state of a tank. Use Tank_SetState only if the default state changes do not adequately meet modeling needs.
Components
<Tank ID>
The tank name or index number.
<State>
The new state for the tank. For a list of possible tank states, see Tank States.